//
//  BVUserSexCell.m
//  BuyVegetable
//
//  Created by yushanchang on 16/10/22.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVUserSexCell.h"

@implementation BVUserSexCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(10, 0, ScreenW - 20, 0.5)];
    [lineView setBackgroundColor:[UIColor BVLineGrayColor]];
    [self.contentView addSubview:lineView];
    
    if (self.is_selected == NO) {
        [self.mark_btn setHidden:YES];
    }
}

- (void)show_select{
    
    if (self.is_selected == NO) {
        [self.mark_btn setHidden:NO];
        [self bringSubviewToFront:self.mark_btn];
        self.is_selected = YES;
    }else{
        [self hide_select];
    }
}

- (void)hide_select{
    [self.mark_btn setHidden:YES];
    self.is_selected = NO;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
